export interface Todo {
  id: string
  text: string
  completed: boolean
  createdAt: Date
  completedAt?: Date
  order: number
}

export interface HistoryRecord {
  id: string
  date: string // YYYY-MM-DD format
  createdTasks: Todo[]
  completedTasks: Todo[]
  totalTasks: number
  completionRate: number
}

export interface Language {
  code: string
  name: string
  translations: {
    title: string
    placeholder: string
    submit: string
    todayMotto: string
    addFirstTodo: string
    allTodos: string
    importData: string
    about: string
    openStar: string
    markAllDone: string
    finishAll: string
    clearAll: string
    exportData: string
    all: string
    history: string
    searchPlaceholder: string
    editTodo: string
    totalTasks: string
    completedTasks: string
    pendingTasks: string
    backup: string
    restore: string
    exportImage: string
    aiAssistant: string
    clearCompleted: string
    noHistory: string
    tasksCreated: string
    tasksCompleted: string
    completionRate: string
  }
}
